package com.lifeibiao.作业0214;

public class SalariedEmployee extends ColaEmployee{
    private double salary;//月薪

    //计算当月员工的工资
    public double getSalary(int mouth){
        double monthsalary = salary + super.getSalary(mouth);
        return monthsalary;
    }

    public SalariedEmployee(String emName, int emBirthday, double salary) {
        super(emName, emBirthday);
        this.salary = salary;
    }

    public SalariedEmployee(double salary) {
        this.salary = salary;
    }

    public SalariedEmployee() {
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
}
